import request from '@/utils/request'

// 查询生产者列表
export function listProducer(query) {
  return request({
    url: '/mq/producer/proxy/list',
    method: 'get',
    params: query
  })
}

// 查询生产者详细
export function getProducer(id) {
  return request({
    url: '/mq/producer/proxy/' + id,
    method: 'get'
  })
}

// 新增生产者
export function addProducer(data) {
  return request({
    url: '/mq/producer/proxy',
    method: 'post',
    data: data
  })
}

// 删除生产者
export function delProducer(id) {
  return request({
    url: '/mq/producer/proxy/' + id,
    method: 'delete'
  })
}
